#ifndef ADDCONTACT_H
#define ADDCONTACT_H

#include <QtGui/QDialog>
#include <QWidget>

/*! \brief addContact
  This class handles the funcitions of and relating
to the Add Contact Window
  */

namespace Ui {
    class addContact;
}

class addContact : public QDialog {
    Q_OBJECT

public:

    /*! addContact
      \brief constructor
      */
    addContact(QWidget *parent = 0);

    /*! ~addContact
      \brief deconstructor
      */
    ~addContact();
    QString getScreenName();

    /*! getEmail
      \return returns the email of the contact
      */
    QString getEmail();
    void errorLabelUpdate();

private slots:

    /*! clickedAddContact
      \brief detects clicking add contact button
      */
    void clickedAddContact();
    void closeAddContact();

protected:

    /*! changeEvent
      \brief detects an event change
      \param e pointer to QEvent
      */
    void changeEvent(QEvent *e);

    /*! keyPressEvent
      \brief detects an event change of a key
      \param event pointer to QEvent
      */
    void keyPressEvent(QKeyEvent *event);

private:

    /*! \var Ui::addContact *m_ui
      \brief pointer to addContact UI
      */
    Ui::addContact *m_ui;


};

#endif // ADDCONTACT_H
